# coding=utf-8
# @Time    : 2018/3/21 15:00
# @Author  : Jiangxu
# @File    : 一个小游戏.py
# @Software: PyCharm
import random


def gameNumAdd():
	a,b=0,1
	while sum < 2 :
		yield sum
		sum,count = sum + count ,count
	else:
		print('Game Over!')


pre = random.randint(0,99)
print pre
guess=raw_input("请输入一个0到99的数字:")
gameNumAdd()

while not guess.isdigit():
	guess = raw_input("请输入一个0到99的数字:")
	gameNumAdd()

while guess.isdigit():
	if pre == int(guess):
		print "wonderful"
		break
	elif pre > int(guess):
		print "小了"
		guess = raw_input("请输入一个0到99的数字:")
		gameNumAdd()
		while not guess.isdigit():
			guess = raw_input("请输入一个0到99的数字:")
			gameNumAdd()
	elif pre < int(guess):
		print "大了"
		guess = raw_input("请输入一个0到99的数字:")
		gameNumAdd()
		while not guess.isdigit():
			guess = raw_input("请输入一个0到99的数字:")
			gameNumAdd()














# while pre!=int(guess):
# 	try:
# 		guess = input("请输入一个0到99的数字:")
# 		if pre == int(guess):
# 			print "wonderful"
# 	except:
# 		print "wrong input"
# 		guess = input("请输入一个0到99的数字:")
#




